<template>
  <div class="box">
    <div class="header">
      <slot name="header"></slot>
    </div>
    <div class="main">
      <slot><h1>默认展示的内容</h1></slot>
    </div>
    <h6>我是版权信息</h6>
    <div class="footer">
      <!-- <button>确定</button>
      <button>取消</button> -->
      <slot name="footer"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    msg: String,
  },
}
</script>

<style>
.box {
  width: 400px;
  margin: 20px;
  border: 1px solid lawngreen;
}
.header {
  background-color: red;
  color: black;
  text-align: center;
  height: 20px;
  line-height: 20px;
}
.main {
  height: 300px;
}
.footer {
  height: 50px;
  background-color: pink;
  display: flex;
  justify-content: center;
  align-items: center;
  /* text-align: center;
  line-height: 50px; */
}
</style>
